package com.xyz.comsumer.feign;

import com.xyz.comsumer.feign.factory.RemoteHelloServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author beibei
 */
@FeignClient(contextId = "remotehelloService", value = "service-provider", fallbackFactory = RemoteHelloServiceFallbackFactory.class)
public interface RemoteHelloService {

    @GetMapping("/hello")
    String hello();

    @GetMapping("/test/{name}/{xyz}")
    String test(@PathVariable("name") String name,@PathVariable("xyz") String xyz);
}
